﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wq.Core.Model;

namespace Wq.Core.PlatAdminService.Models
{
    public enum PrivilegeDescriptor
    {

        [Menu("概览", "home", Icon = "icon-dashboard", Permission = true)] 
        [Permission(PrivilegeType.View)]
        GeneralView = 10000,

        [Menu("店铺", "shop", Icon = "icon-shop")]
        [Menu("店铺", "店铺信息", "setting", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Edit)]
        SiteSetting = 20000,
        [Menu("店铺", "手机端", "mobile")]
        [Menu("店铺", "手机端", "微页面", "microPage", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)] 
        MobileTopic = 20001,
        [Menu("店铺", "手机端", "分类页面", "category", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        MobileCategory = 20002,
        [Menu("店铺", "PC端", "pc")]
        [Menu("店铺", "PC端", "分类页面", "microPage", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        PCTopic = 20003,

        [Menu("商品", "product", Icon = "icon-product")]
        [Menu("商品", "商品列表", "list", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        Product = 30000,
        [Menu("商品", "商品分类", "category", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        ProductCategory = 30001,

        [Menu("订单", "product", Icon = "icon-order")]
        [Menu("订单", "订单管理", "list", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Delete,PrivilegeType.Export,PrivilegeType.Deliver, PrivilegeType.Collection, PrivilegeType.Details, PrivilegeType.Close, PrivilegeType.UpdateAddress, PrivilegeType.Print, PrivilegeType.ModifyPrice, PrivilegeType.Remarks)]
        Order = 40001,
        [Menu("订单", "售后维权", "refund", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Handle)]
        Refund = 40002,

        [Menu("设置", "setting", Icon = "icon-Setting")]
        [Menu("设置", "系统设置", "system")]
        [Menu("设置", "系统设置", "角色设置", "role", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        RoleSetting = 11000,

        [Menu("设置", "setting", Icon = "icon-Setting")]
        [Menu("设置", "系统设置", "system")]
        [Menu("设置", "系统设置", "管理员", "manager", Permission = true)]
        [Permission(PrivilegeType.View, PrivilegeType.Add, PrivilegeType.Edit, PrivilegeType.Delete)]
        ManagerSetting = 11000,
    }
}
